<template>
  <div class="hello">
    <h1 @click="merge">{{uname}}</h1>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  data () {
    return {
      uname: '',
      upwd: ''
    }
  },
  methods: {
     merge(){
         alert('1')
     }
  },
  mounted () { this.uname = '3' }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped >

</style>
